import { createStore } from "vuex"
import user from "./modules/user"
import createPersistedState from "vuex-persistedstate"
const getters = {}
const store = createStore({
    modules: {
        user,
    },
    plugins: [
        createPersistedState({
            key: "www",
            storage: sessionStorage,
            reducer(state) {
                return {
                    user: state.user,
                }
            }
        })
    ]
})
export default store